package greetings

import (
	"fmt"
	"strconv"
)

func TypeConvertDemo() {

	a := 10
	var s string = strconv.Itoa(a)
	fmt.Println("s is:", s)

	var s1 = "123"
	var a1 int
	a1, err := strconv.Atoi(s1)
	if err != nil {
		panic("string转int出错")
	}
	fmt.Println("a1 is:", a1)
	small()
}
